// eslint-disable-next-line @typescript-eslint/no-var-requires
const express = require('express')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path')
const app=express()
app.get('/images/loading.gif',function (req,res) {
  res.sendFile(path.join(__dirname,req.path))
})
app.get('/images/:name',function (req,res) {
  setTimeout(() => {
    res.sendFile(path.join(__dirname,req.path))
  }, 2000)
})
app.get('/',function (req,res) {
  res.sendFile(path.resolve('index.html'))
})
app.listen(8080)
